Skip to main content

longFilePath

Type

function

Summary

Returns the long-format equivalent of an 8.3-format file path.

Syntax

the longFilePath of <filePath>
longFilePath(<filePath>)

Description

Use the longFilePath function to get the long equivalent of a short file path passed from the command line.

The longFilePath function transforms the filePath without looking for the file, so it returns a value even if the filePath does not exist- namely the filePath prefixed with the current defaultFolder.

warning

In pre 7.x versions on Mac and Linux the longFilePath function returned the filePath without changing it, post 7.x the longFilePath function returns the full path to the file. This change may affect existing code.

Parameters

NameTypeDescription

filePath

The filePath is the location and name of the file or folder whose long equivalent you want. If you specify a name but not a location, LiveCode assumes the file or folder is in the defaultFolder.

Examples

the longFilePath of it
if storedPath is not the longFilePath of storedFile then checkVersion

property: defaultFolder

function: shortFilePath

glossary: file path, return

Compatibility and Support

Introduced

LiveCode 1.1

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?